﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

namespace M5.GeminiHybird.Core.Attribute
{
    public class ControllerMethodAttribute : System.Attribute
    {
        public static bool HasThisAttribute(MethodInfo methodInfo)
        {
            var attrs = methodInfo.GetCustomAttributes(false);
            int count = attrs.Count(attr => attr is ControllerMethodAttribute);

            return count > 0 ? true : false;
        }
    }
}
